package cn.itcast.bos.domain.qp;

// Generated 2016-4-29 15:27:59 by Hibernate Tools 3.2.2.GA

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

import cn.itcast.bos.domain.bc.Staff;

/**
 * WorkBill generated by hbm2java
 */
@Entity
@Table(name = "QP_WORKBILL", schema = "ITCAST27")
/**
 *   工单描述 取派员任务
 * @author Administrator
 *
 */
public class WorkBill implements java.io.Serializable {

	private String id;
	private NoticeBill noticeBill;
	private Staff staff;
	private String type;
	private String pickstate;
	private Date buildtime;
	private BigDecimal attachbilltimes;
	private String remark;

	public WorkBill() {
	}

	public WorkBill(NoticeBill noticeBill, Staff staff, String type, String pickstate, Date buildtime, BigDecimal attachbilltimes, String remark) {
		this.noticeBill = noticeBill;
		this.staff = staff;
		this.type = type;
		this.pickstate = pickstate;
		this.buildtime = buildtime;
		this.attachbilltimes = attachbilltimes;
		this.remark = remark;
	}

	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "NOTICEBILL_ID")
	public NoticeBill getNoticeBill() {
		return this.noticeBill;
	}

	public void setNoticeBill(NoticeBill noticeBill) {
		this.noticeBill = noticeBill;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "STAFF_ID")
	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	@Column(name = "TYPE", length = 20)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "PICKSTATE", length = 20)
	public String getPickstate() {
		return this.pickstate;
	}

	public void setPickstate(String pickstate) {
		this.pickstate = pickstate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "BUILDTIME", length = 11)
	public Date getBuildtime() {
		return this.buildtime;
	}

	public void setBuildtime(Date buildtime) {
		this.buildtime = buildtime;
	}

	@Column(name = "ATTACHBILLTIMES", precision = 22, scale = 0)
	public BigDecimal getAttachbilltimes() {
		return this.attachbilltimes;
	}

	public void setAttachbilltimes(BigDecimal attachbilltimes) {
		this.attachbilltimes = attachbilltimes;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
